<header id="topbar" class="">
    <div class="topbar-left">
        <ol class="breadcrumb">
            <li class="crumb-active">
                <a href="<%= window.location.href %>">商户管理</a>
            </li>
        </ol>
    </div>
    <div class="topbar-right">
        <a href="#op/mch/add/" class="btn btn-default btn-sm light fw600 ml10"><span class="fa fa-plus pr5"></span>新建商户</a>
    </div>
</header>

<section id="content" class="animated fadeIn">
    <div class="panel overflow" >
        <table class="table table-striped fs13" id="main-list">
            <thead>
                <tr class="bg-light">
                    <th class="sortable" data-field="id">ID</th>
                    <th class="sortable" data-field="name">名称</th>
                    <th>商户密钥</th>
                    <th class="sortable" data-field="updated_at">最后更新时间</th>
                    <th class="">开始时间</th>
                    <th class="">操作</th>
                </tr>
            </thead>
            <tbody class="admin-form">
                <% _.each(items, function(item){
                %>
                    <tr data-id="<%= item.id %>" >
                        <td class=""><a href="#op/mch/<%= item.id %>/" ><%= item.id %></a></td>
                        <td class=""><%= item.name %></td>
                        <td><%= item.api_key %></td>
                        <td class=""><%= item.updated_at %></td>
                        <td><%= item.created_at ? item.created_at : "-" %></td>
                        <td class="text-left">
                            <a class="glyphicons glyphicons-pencil" href="#op/mch/<%= item.id %>/"></a>
                            <a class="glyphicons glyphicons-remove_2 onClickDelete" href="javascript:;"></a>
                        </td>
                    </tr>
                <%
                }) %>
            </tbody>
        </table>
    </div>
    <div><div class="pull-left" id="page-tips"></div><div id="paginator"></div></div>
</section>
